.ai-writing-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif; /* 系统默认中文字体 */
}

.ai-writing-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 30px;
}

/* 标题样式 */
.ai-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 输入区域样式 */
.ai-input-area {
    margin-bottom: 30px;
}

.topic-input,
.style-selection,
.length-selection {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* 风格选择按钮样式 */
.style-options {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.style-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #ecf0f1;
    color: #34495e;
    transition: all 0.3s;
}

.style-btn.active,
.style-btn:hover {
    background: #3498db;
    color: white;
}

/* 长度选择下拉框样式 */
#article-length {
    width: 200px;
}

/* 生成按钮样式 */
.generate-btn {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.generate-btn:hover {
    background: #2ecc71;
}

/* 输出区域样式 */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.copy-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.copy-btn:hover {
    background: #f5f5f5;
}

.loading-indicator {
    text-align: center;
    margin: 30px 0;
    color: #7f8c8d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

/* 内容显示区域 */
.output-content {
    line-height: 1.6;
    color: #555;
}

.placeholder-text {
    color: #95a5a6;
    font-style: italic;
}

.error-text {
    color: #e74c3c;
    margin: 10px 0;
}

.word-count {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9em;
    text-align: right;
}

/* 动画样式 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-writing-container {
        padding: 15px;
    }

    .style-options {
        flex-direction: column;
        gap: 8px;
    }
}